Skip to content

Add speculative_count to memory calculation#144

Closed
christiangnrd wants to merge 1 commit into
JuliaTesting:mainfrom
christiangnrd:patch-1
Closed

Add speculative_count to memory calculation#144
christiangnrd wants to merge 1 commit into
JuliaTesting:mainfrom
christiangnrd:patch-1

Conversation

@christiangnrd

Copy link
Copy Markdown
Contributor

As I mentioned in #142 (comment), while never a large portion of memory usage, speculative_count on macos can probably be considered available.

@giordano giordano left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't say the documentation of host_statistics64 is particularly enlightening, but trusting you tested it, this looks good to me.

@christiangnrd

Copy link
Copy Markdown
Contributor Author

Wait

@christiangnrd

christiangnrd commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

I'm sorry for wasting your time it seems like speculative_count is already included in free_count

https://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/osfmk/mach/vm_statistics.h#L112-L119

@christiangnrd
christiangnrd deleted the patch-1 branch July 15, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants